package com.ruoyi.system.myweb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.myweb.mapper.TheaterTableMapper;
import com.ruoyi.system.myweb.domain.TheaterTable;
import com.ruoyi.system.myweb.service.ITheaterTableService;

/**
 * 影院列表Service业务层处理
 * 
 * @author zyh
 * @date 2024-05-21
 */
@Service
public class TheaterTableServiceImpl implements ITheaterTableService 
{
    @Autowired
    private TheaterTableMapper theaterTableMapper;

    /**
     * 查询影院列表
     * 
     * @param theaterId 影院列表主键
     * @return 影院列表
     */
    @Override
    public TheaterTable selectTheaterTableByTheaterId(Long theaterId)
    {
        return theaterTableMapper.selectTheaterTableByTheaterId(theaterId);
    }

    /**
     * 查询影院列表列表
     * 
     * @param theaterTable 影院列表
     * @return 影院列表
     */
    @Override
    public List<TheaterTable> selectTheaterTableList(TheaterTable theaterTable)
    {
        return theaterTableMapper.selectTheaterTableList(theaterTable);
    }

    /**
     * 新增影院列表
     * 
     * @param theaterTable 影院列表
     * @return 结果
     */
    @Override
    public int insertTheaterTable(TheaterTable theaterTable)
    {
        return theaterTableMapper.insertTheaterTable(theaterTable);
    }

    /**
     * 修改影院列表
     * 
     * @param theaterTable 影院列表
     * @return 结果
     */
    @Override
    public int updateTheaterTable(TheaterTable theaterTable)
    {
        return theaterTableMapper.updateTheaterTable(theaterTable);
    }

    /**
     * 批量删除影院列表
     * 
     * @param theaterIds 需要删除的影院列表主键
     * @return 结果
     */
    @Override
    public int deleteTheaterTableByTheaterIds(Long[] theaterIds)
    {
        return theaterTableMapper.deleteTheaterTableByTheaterIds(theaterIds);
    }

    /**
     * 删除影院列表信息
     * 
     * @param theaterId 影院列表主键
     * @return 结果
     */
    @Override
    public int deleteTheaterTableByTheaterId(Long theaterId)
    {
        return theaterTableMapper.deleteTheaterTableByTheaterId(theaterId);
    }
}
